#include "speedstatuswidget.h"
#include <QLabel>
#include <QVBoxLayout>

SpeedStatusWidget::SpeedStatusWidget(GameInfo & info)
    :m_info(info)
{

}

void SpeedStatusWidget::updateUI()
{
    QLabel * lbl = new QLabel(QString("当前游戏速度为：%1").arg(m_info.GameSpeed));
    lbl->setAlignment(Qt::AlignVCenter| Qt::AlignHCenter);

    QVBoxLayout * layout = new QVBoxLayout();
    layout->addWidget(lbl);

    setLayout(layout);
}
